README File for:

"Relative Gains in the Shadow of a Trade War"

International Organization

Eddy S. F. Yeung, Emory University
Kai Quek, The University of Hong Kong

List of files required to replicate each reported analysis in the main text:
- Table 1: "trade.do" (code) and "trade.csv" (data)
- Table 2: "trade.do" (code) and "trade.csv" (data)
- Figure 2: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure 3: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure 4: "figures_hand-coded.R" (code) and "summary_hand-coded.xlsx" (data)
- Figure 5: "figures_hand-coded.R" (code) and "summary_hand-coded.xlsx" (data)

List of files required to replicate each reported analysis in the appendix:
- Table A1: "trade.do" (code) and "trade.csv" (data)
- Table A2: "trade.do" (code) and "trade.csv" (data)
- Table A3: "trade.do" (code) and "trade.csv" (data)
- Table A4: "trade.do" (code) and "trade.csv" (data)
- Table A5: "stm_analysis.R" (code) and "stm_dataset.csv" (data)
- Table A6: "stm_analysis.R" (code) and "stm_dataset.csv" (data)
- Table A10: "trade.do" (code) and "trade.csv" (data)
- Figure A2: "figures_group-balance.R" (code) and "trade.csv" (data)
- Figure A3: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure A4: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure A5: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure A6: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure A7: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure A8: "figures_heterogeneity.R" (code) and "trade.csv" (data)
- Figure A9: "stm_analysis.R" (code) and "stm_dataset.csv" (data)
- Figure A10: "stm_analysis.R" (code) and "stm_dataset.csv" (data)
- Figure A11: "figures_dictionary-based.R" (code) and "open-ended_coding.xlsx" (data)
- Figure A12: "figures_dictionary-based.R" (code) and "open-ended_coding.xlsx" (data)

Other files:
- "ebalance.ado": Stata code to implement entropy balancing (related: Table A10)
- "open-ended_codebook.pdf": codebook for open-ended responses (related: "open-ended_coding.xlsx")